package com.zpl.common.resp;

import com.zpl.common.constant.MessageStatusConst;

/**
 * @author zhupanlin
 * @version 1.0
 * @description: TODO
 * @date 2024/9/8 11:35
 */
public enum ConsumerStatus {
    SUCCESS(MessageStatusConst.CONSUMER_SUCCESS, "消费成功"),
    FAILED(MessageStatusConst.CONSUMER_FAILED, "消费失败"),
    CONSUMER_LATER(MessageStatusConst.CONSUMER_LATER, "稍后消费")
    ;
    
    private final String code;
    private final String desc;
    
    private ConsumerStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public String getCode() {
        return code;
    }

    public String getDesc() {
        return desc;
    }
}
